package com.meituan.sdk.model.ddzh.technician.technicianTechinfoSycnstock;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 手艺人库存同步
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzh/technician/techInfo/syncstock",
    businessId = 58,
    apiVersion = "10009",
    apiName = "technician_techinfo_sycnstock",
    needAuth = true
)
public class TechnicianTechinfoSycnstockRequest implements MeituanRequest<TechnicianTechinfoSycnstockResponse> {
    /**
    * <p data-diff-id="ct-diff-id-d633a85e-92dc-4b44-8c30-77e8826168dc">最多传入20个，一次只支持一个门店下的技师库存同步</p>
    */
    @NotEmpty(message = "scheduleList不能为空")
    @SerializedName("scheduleList")
    private List<TechScheduleBo> scheduleList;

    public List<TechScheduleBo> getScheduleList() {
        return scheduleList;
    }
    public void setScheduleList(List<TechScheduleBo> scheduleList) {
        this.scheduleList = scheduleList;
    }


    @Override
    public MeituanResponse<TechnicianTechinfoSycnstockResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<TechnicianTechinfoSycnstockResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "TechnicianTechinfoSycnstockRequest{" + "scheduleList=" + scheduleList + "}";
    }
}
